package com.quanyan.stadium.utils.demo.SpringDemo.bean;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by xiaoxiao on 17/1/18.
 */
public class DemoMain {
    public static void main(String[] args){
        AnnotationConfigApplicationContext app = new AnnotationConfigApplicationContext(ScopeConfig.class);

        DemoSingletonService singletonService = app.getBean(DemoSingletonService.class);
        System.out.print(singletonService.toString());
        app.close();
    }
}
